package com.rika.service.impl;

import com.rika.dao.PayRecordDao;
import com.rika.pojo.PayRecord;
import com.rika.service.PayRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class PayRecordServiceImpl implements PayRecordService {
    @Resource
    private PayRecordDao payRecordDao;
    @Override
    public void addPayRecord(PayRecord payRecord) {
        payRecordDao.addPayRecord(payRecord);
    }

    @Override
    public List<PayRecord> selectPayRecord(Map<String, Object> params) {
        return payRecordDao.selectPayRecord(params);
    }

    @Override
    public List<PayRecord> selectRandEForE(Map<String, Object> params) {
        return payRecordDao.selectRandEForE(params);
    }

    @Override
    public List<PayRecord> selectRandEForR(Map<String, Object> params) {
        return payRecordDao.selectRandEForR(params);
    }
}
